﻿using SubsidiosBussinessLogic.DataAccess.Interfaces;
using SubsidiosBussinessLogic.Models;

namespace SubsidiosBussinessLogic.DataAccess.SqlServerRepository
{
    public class EnteRepository : Repository<Ente>
    {
        public EnteRepository(IDataContextFactory dataContext ): base (dataContext)
        {
        }

        protected Ente CreateEnte()
        {
            return base.CreateInstance();
        }

        protected void DeleteEnte(Ente ente)
        {
            base.MarkForDeletion(ente);
        }

        protected void SaveEnte()
        {
            base.SaveAll();
        }
    }
}